package com.dyz.mapper;

import com.dyz.domain.SysMenu;
import com.dyz.domain.SysRolePrivilege;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 角色权限配置 Mapper 接口
 * </p>
 *
 * @author dyz
 * @since 2025-04-19
 */
@Mapper
public interface SysRolePrivilegeMapper extends BaseMapper<SysRolePrivilege> {
    /**
     * 查询角色权限
     * @param roleId
     * @return
     */
    List<SysMenu> getPrivilegesByRoleId(Long roleId);

    /**
     * 查询权限的id
     * @param roleId
     * @return
     */
    List<Long> getPrivilegeRoleId(Long roleId);
}
